package com.huluobo.h3kotlinproject.data

/**
 *  Created by LC on 2023/10/17.
 *   在kotlin中,在一个class前加一个data 代表当前类是一个bean类
 *
 *   {
 *   "code": 200,
 *   "message": "登陆成功",
 *   "data": {
 *     "admin": false,
 *     "coinCount": 0,
 *     "email": null,
 *     "icon": "http://10.161.9.80:8080/res/icon/b155b072081b4ce1b903153882acbfb6.png",
 *     "id": 2597,
 *     "nickname": "liuchang22",
 *     "password": "123",
 *     "publicName": null,
 *     "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhdXRoMCIsImV4cCI6MTY5ODExMzU0NiwidXNlcm5hbWUiOiJsaXVjaGFuZzEifQ.FsR4OdHQutqW6cERjV1-Hsf-SKyNoEhfBZVlP4znotA",
 *     "type": 0,
 *     "username": "liuchang1",
 *     "sex": "男",
 *     "birth": null,
 *     "address": "天津市"
 *   }
 * }
 */
data class UserBeanResult(
    val code: Int,
    val message: String,
    val data: UserBean
)

data class UserBean(
    val admin: Boolean,
    val coinCount: Int,
    val email: String,
    val icon: String,
    val id: Int,
    val nickname: String,
    val password: String,
    val publicName: String,
    val token: String,
    val type: Int,
    val username: String,
    val sex: String,
    val birth: String,
    val address: String,
)